home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Freelog 117
/
FreelogNo117-OctobreNovembre2013.iso
/
Programmation
/
jedit
/
jedit5.1.0install.exe
/
{app}
/
macros
/
Files
/
Send_Buffer_To_Next_Split.bsh
< prev
next >
Wrap
Text File
|
2013-07-28
|
1KB
|
38 lines
/*
* Send_Buffer_To_Next_Split.bsh
* Not very useful unless you are using EditPane-scope buffersets.
* (c) 2009 by Alan Ezust
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with the jEdit program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* Checked for jEdit 4.3 API
*
*/
sendBufferToNextSplit() {
if( view.getSplitPane() == null ) return;
editPanes = view.getEditPanes();
for(src = 0; src < editPanes.length; src++)
if(editPane == editPanes[src]) {
dest = src + 1;
if (dest >= editPanes.length) dest = 0;
jEdit.openFile(editPanes[dest], buffer.getPath());
break;
}
}
sendBufferToNextSplit();